import request from "../request.js"

//添加购物车
function addCart(data){
    return request({
        url:'/cart/addCart',
        data,
        method:'post'
    })
}
//获取购物车列表
function cartList(data){
    return request({
        url:'/cart/cartList',
        data
    })
}
//删除商品
function deleteAction(data){
    return request({
        url:'/cart/deleteAction',
        data
    })
}
export{
    deleteAction,cartList,addCart
}